<template>
	<!-- 页面 -->
	<view class="page">
		<!-- 日期 -->
		<view class="date">
			<text>9月18日 星期二</text>
		</view>
		<view class="title flex flex-x-between flex-y-center">
			<view class="left">Today</view>
			<view class="right">
				<image src="../../static/page/账户登录头像.png" class="img"></image>
			</view>
			<!-- 第二种
			<!-- <image class="right" src="../../static/page/账户登录头像.png"></image> -->
		</view>
		<view class="list">
			<!-- 卡片 -->
			<view class="card">
				<!-- 图片 -->
				<image src="../../static/定位.jpg" class="picture"></image>
				<view class="subtitle">编辑的话</view>
				<view class="title">欢迎来到全新 APP Store!</view>
			</view>

			<view class="card">
				<!-- 图片 -->
				<image src="../../static/定位1.jpg" class="picture" mode="heightFix"></image>
				<view style="color:rgba(255, 255, 255, 0.5);" class="subtitle">时下热门</view>
				<view style="color: #FFFFFF;" class="title">你为谁而战?</view>
				<view class="bottom">《梦幻模拟机》,殿堂几战旗游戏的新生</view>
			</view>

			<view class="card">
				<!-- 图片 -->
				<image src="../../static/图片.jpg" class="picture"></image>
				<view style="color:rgba(255, 255, 255, 0.5);" class="subtitle">独立佳作</view>
				<view style="color: #FFFFFF;" class="title">守护地下城,击退勇士</view>
			</view>

			<view class="card">
				<!-- 图片 -->
				<!-- <image src="#" class="picture"></image> -->
				<view style="color:#808080;" class="subtitle">今日主题</view>
				<view style="color: #333333;" class="titles">如果你也需要通勤</view>
				<swiper class="swiper" :indicator-dots="false" next-margin="-20rpx" :circular="true" :autoplay="true"
					:interval="interval" :duration="duration">
					<swiper-item>
						<view class="swiper-item">
							<view class="wrap one a">
								<image src="../../static/图标6.png"></image>
								<image src="../../static/图标2.png"></image>
								<image src="../../static/图标3.png"></image>
								<image src="../../static/图标5.png"></image>
							</view>
							<view class="wrap two">
								<image src="../../static/图标2-1.png" class="end"></image>
								<image src="../../static/图标2-2.png"></image>
								<image src="../../static/图标2-3.png"></image>
								<image src="../../static/图标2-4.png"></image>
								<image src="../../static/图标2-5.png"></image>
								<image src="../../static/图标2-6.png" class="start"></image>
							</view>
							<view class="wrap one">
								<image src="../../static/图标3-1.png"></image>
								<image src="../../static/图标3-2.png"></image>
								<image src="../../static/图标3-3.png"></image>
								<image src="../../static/图标3-4.png"></image>
							</view>
						</view>
					</swiper-item>
					<swiper-item>
						<view class="swiper-item">
							<view class="wrap one">
								<image src="../../static/图标3.png"></image>
								<image src="../../static/图标5.png"></image>
								<image src="../../static/图标2.png"></image>
								<image src="../../static/图标1.png"></image>
							</view>
						</view>
					</swiper-item>
				</swiper>
				<view class="swiper">
					<view class="swiper-item">
						<view class="wrap one">
							<view>
								<image src="../../static/图标1.png"></image>
							</view>
							<view>
								<image src="../../static/图标2.png"></image>
							</view>
							<view>
								<image src="../../static/图标3.png"></image>
							</view>
							<view>
								<image src="../../static/图标5.png"></image>
							</view>
							<view>
								<image src="../../static/图标6.png"></image>
							</view>
						</view>
						<view class="wrap two">
							<view>
								<image src="../../static/图标1.png"></image>
							</view>
							<view>
								<image src="../../static/图标2.png"></image>
							</view>
							<view>
								<image src="../../static/图标3.png"></image>
							</view>
							<view>
								<image src="../../static/图标5.png"></image>
							</view>
							<view>
								<image src="../../static/图标6.png"></image>
							</view>
						</view>
					</view>
				</view>
			</view>


			<view class="card">
				<!-- 图片 -->
				<image src="../../static/t1.jpg" class="picture" mode="heightFix"></image>
				<view style="color:rgba(255, 255, 255, 0.5);" class="subtitle">高手绝招</view>
				<view style="color: #FFFFFF; font-size: 58rpx; font-weight: 700; width: 522rpx;" class="title">来一次图片与文字的
					绝妙搭配</view>
			</view>

			<!-- -------------------- -->
			<view class="card" @click="abc">
				<!-- 图片 -->
				<view style="color:#808080;" class="subtitle">今日主题</view>
				<view style="color: #333333; font-size: 58rpx;" class="titles">闲来涂个色</view>
				<!-- ----------------------------------------------------------------------------------------------------------------------- -->

				<abc></abc>
				<qwe></qwe>
				<!-- <view class="flex flex-y-center flex-x-between" v-for="(item,index) in list" :key="index">
					<view style="display: flex; align-items: center; ">
						<image :src="item.img"
							style="width: 100rpx; height: 100rpx; margin-left: 40rpx; margin-top: 18rpx;">
						</image>
						<view style="margin-left: 20rpx;">
							<view style="font-weight: 700; ">{{item.title}}</view>
							<view style="font-size: 14rpx; color: rgba(128, 128, 128, 0.8);">{{item.msg}}</view>
						</view>
					</view>
					<view style="display: flex;">
						<button class="btn">{{item.btn}}</button>
					</view>
				</view> -->
			</view>
		</view>
	</view>
</template>

<script>
	import abc from '../components/list.vue'
	import qwe from '../components/aData.vue'
	export default {
		components:{abc,qwe},
		data() {
			return {
				interval: 1,
				duration: 10000,
				// list: [{
				// 		title: 'lake: 涂色书',
				// 		msg: '放轻松，用涂色驱散压力',
				// 		img: '../../static/tt1.png',
				// 		btn:'获取'
				// 	},
				// 	{
				// 		title: 'UNRN:我的涂色本',
				// 		msg: '拼图游戏和着色游戏',
				// 		img: '../../static/tt2.png',
				// 		btn:'获取'
				// 	},
				// 	{
				// 		title: 'Tayasui Color',
				// 		msg: '娱乐',
				// 		img: '../../static/tt3.png',
				// 		btn:'￥18.00'
				// 	},
				// 	{
				// 		title: 'Bloom 着色解密',
				// 		msg: '变得有创新',
				// 		img: '../../static/tt4.png',
				// 		btn:'获取'
				// 	},
				// 	{
				// 		title: 'Coloy：成人用的乐趣',
				// 		msg: '最舒压的绘画游戏-秘密',
				// 		img: '../../static/tt5.png',
				// 		btn:'获取'
				// 	}
				// ]
			};
		},
		methods: {
			abc() {
				// console.log('去下一个页面')
				uni.navigateTo({
					url:'./../today2/today2'
				})
			}
		}
	}
</script>
<style lang="scss">
	.page {
		width: 100%;

		.date {
			color: #808080;
			font-size: 23rpx;
			margin-top: 48rpx;
			margin-left: 40rpx;
		}

		.btn {
			width: 148rpx;
			height: 60rpx;
			border-radius: 33px;
			font-size: 14px;
			line-height: 60rpx;
			text-align: center;
			color: rgba(42, 130, 228, 1);
			margin-right: 45rpx;
		}

		.title {
			width: 670rpx;
			margin: 20rpx auto;

			.left {
				color: rgba(0, 0, 0, 1);
				font-size: 68rpx;
				font-weight: bold;
			}

			.right {
				width: 72rpx;
				height: 72rpx;

				.img {
					width: 100%;
					height: 100%;
					border-radius: 38rpx;
				}
			}
		}

		.list {
			width: 100%;

			.card {
				width: 670rpx;
				height: 819rpx;
				border-radius: 23px;
				margin: 20rpx auto 60rpx;
				box-shadow: 0px 35px 35px 0px rgba(153, 153, 153, 0.2);
				position: relative;
				overflow: hidden;
				background: #fff;

				.picture {
					z-index: 1;
					width: 100%;
					height: 100%;
					position: absolute;
				}

				.subtitle {
					font-size: 32rpx;
					color: #808080;
					margin-top: 22rpx;
					margin-left: 40rpx;
					z-index: 10;
					position: relative;
				}

				.title {
					width: 348rpx;
					font-size: 58rpx;
					color: #383838;
					margin-top: 10rpx;
					margin-left: 40rpx;
					z-index: 10;
					position: relative;
				}

				.titles {
					width: 432rpx;
					color: rgba(0, 0, 0, 1);
					margin-top: 10rpx;
					margin-left: 40rpx;
					font-size: 23px;
					font-weight: bold;
					z-index: 10;
					position: relative;
				}

				// --------------------------
				.swiper {
					width: 100%;
					min-height: 580rpx;
					margin-top: 80rpx;

					.swiper-item {
						width: max-content;
						height: 100%;
						position: relative;

						.wrap {
							position: relative;
							transition: all;
							width: max-content;
							height: 152rpx;
							margin-bottom: 20rpx;

							image {
								width: 152rpx;
								height: 152rpx;
								border-radius: 38rpx;
								margin-right: 20rpx;
							}
						}

						.two {
							left: -76rpx;
						}

						// .one{
						// 	// animation: move 10s ;
						// 	animation-name: move;
						// 	animation-duration: 80s;
						// 	animation-timing-function: linear;
						// 	animation-delay: 0s;
						// 	animation-iteration-count: infinite;
						// 	animation-direction: normal;
						// 	animation-play-state: running;
						// }
					}
				}

				.bottom {
					position: relative;
					left: 54rpx;
					top: 567rpx;
					color: #FFFFFF;
				}

			}
		}
	}
</style>
